Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODSemanticInterface


CallCountProc

The CallCountProc method counts the number of elements of the specified type in the specified container.

void CallCountProc (in ODPart thePart,
                    in ODDescType desiredType, 
                    in ODDescType containerClass, 
                    in ODOSLToken container,
                    out ODSLong result);
thePart
A reference to a part associated with this semantic interface object.
desiredType
The type of object to be counted.
containerClass
The object class of the container for the desired objects.
container
A reference to an OpenDoc token for the container.
result
The number of objects of the desired type in the container.
DISCUSSION
This method counts the elements in the container whose type matches the desiredType parameter and returns that number in the result parameter.

EXCEPTIONS
The Apple Event Manager may throw an exception if this method is unable to count the specified type of object.

This method may throw platform-specific exceptions.

SEE ALSO
The ODDescType type (page 925).
The ODOSLToken class (page 456).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help